<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>   
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- <script>document.getElementsByTagName('html')[0].style.fontSize = window.screen.width /10 + 'px';</script>-->
<script type="text/javascript" src="/js/app/jquery.min.js"></script>
<script type="text/javascript" src="/js/app/widthpercent.js"></script>
<title>${boardDetail.title}</title>
	<style type="text/css">
	body{margin:0;word-wrap:break-word;font-weight: 300;letter-spacing: 0.6px;}
	img{width:100%;}
	</style>
	
<script type="text/javascript">

$(function(){
	$("div[class^='goodDetailLink']").each(function(){
		   var c_name = $(this).prop("className").split('_');
		   $(this).click(function(){

			   if('${memberLevel}'){
					  if('${os}'=='ios'){
							  if('${memberLevel}' =='127' || '${memberLevel}' =='126'){
								  window.webkit.messageHandlers.ios_open_page.postMessage('ProductDetailViewController:::goodId->'+c_name[1]);
							  }
							  if('${memberLevel}' !='127' && '${memberLevel}' !='126'){
								  window.webkit.messageHandlers.ios_open_page.postMessage('ProductViewController:::goodId->'+c_name[1]);
							  } 
					  }
					  if('${os}'=='android'){
							  if('${memberLevel}' =='127' || '${memberLevel}' =='126'){
								  android.openPage('com.uniplaza.fenx.mall.activity.GoodsDetailsActivity:::gId->'+c_name[1]);
							  }
							  if('${memberLevel}' !='127' && '${memberLevel}' !='126'){
								  android.openPage('com.uniplaza.fenx.material.activity.MaterialDetailsActivity:::gId->'+c_name[1]);
							  }
						 
					  }
				   }else{
					   if(/android/i.test(navigator.userAgent)){
							  android.openPage('com.uniplaza.fenx.mall.activity.GoodsDetailsActivity:::gId->'+c_name[1]);
						}
						if(/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)){
							  window.webkit.messageHandlers.ios_open_page.postMessage('ProductDetailViewController:::goodId->'+c_name[1]);
						}
				   }
	        });  
	});
	
	$(".square_img").each(function(){
		this.style.height = this.width + 'px'
	})
	
	if('${memberLevel}' =='127' || '${memberLevel}' =='126'){
		$(".good_ticket_info").hide();
	}
});
</script>
</head>
<body>

		${boardDetail.content}
</body>
</html>